package com.endava.Parsing;

import com.endava.Formatting.RegexDate;

public class Teste2 {
	public static void main(String[] args) {
		RegexDate regDate=new RegexDate();
//		String regex="([0-9]( | -)?)?(\\(?[0-9]{3}\\)?|[0-9]{3})( |-)?([0-9]{3}( | -)?[0-9]{4}|[a-zA-Z]{7})";
		String regex="([0-9]( |-)?)?(\\(?[0-9]{3}\\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})";
		String input="1-(412)555-1212 (412)555-1212 412-555-1234 412 555-1234";
		regDate.numberFormat(regex, input);
	}
}